/* 获取数据字典信息 */
function getDictionaries(dicParentId) {
    if (dicParentId == null || dicParentId == ''){
        return '';
    }
    let dictionaryArray = localStorage.getItem('DIC_PID_' + dicParentId);
    if (dictionaryArray != null && dictionaryArray != ''){
        return JSON.parse(dictionaryArray);
    }
    $.ajax({
        type: "POST",
        url: '/index/listDictionaries',
        dataType: 'json',
        async: false,
        data: {
            parentId: dicParentId
        },
        success: function(dicData) {
            if (dicData != null && dicData != ''){
                dictionaryArray = dicData;
                localStorage.setItem('DIC_PID_' + dicParentId,JSON.stringify(dicData));
            }
        },
        error: function() {
        }
    });
    return dictionaryArray;
}